package com.example.natatorium_management.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.natatorium_management.entity.Good;
import com.example.natatorium_management.result.restful.R;

import java.util.List;

public interface GoodService {
    R<IPage<Good>> queryPage(int current, int size);

    R<Good> updateGood(Good good);

    R<Good> addGood(Good good);

    R<Good> findGoodById(int GoodId);

    R<IPage<Good>> findGood(Good good,int current,int size);

    R<Good> deleteGoodById(int Id);

    public R<List<Good>> findAllGood(Long orderId);
}
